package cn.itcast.nems.studentrecord.service.settlement;

import cn.itcast.nems.studentrecord.constant.ReferenceTypeEnum;

/**
 * @author liyong
 * create: 2023-12-11 19:30:21
 **/
public class SettlementCalculatorRepeat extends DefaultSettlementCalculator {

    public SettlementCalculatorRepeat() {
        super(null, ReferenceTypeEnum.REPEAT);
    }

    public SettlementCalculatorRepeat(SettlementResult originSettlementResult) {
        super(originSettlementResult, ReferenceTypeEnum.REPEAT);
    }

    @Override
    int doCalSettlementAmount(SettlementData settlementData, int serviceDays, int settlementDays) {
        return settlementData.getActualAmountDue();
    }

    @Override
    int calTransferOutAmount(SettlementData settlementData, int settlementAmount) {
        return 0;
    }
}
